package com.health.income.controller;

import com.health.common.core.domain.R;
import com.health.income.service.IncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 20250314 云计算-维度健康-05-我的收入V1.1-20250115
 */
@RestController
@RequestMapping("income")
public class IncomeController {

    @Autowired
    private IncomeService incomeService;

    @GetMapping("selectMyIncome")
    public R selectMyIncome() {
        return R.ok(incomeService.selectMyIncome());
    }

    @GetMapping("selectMyOrder")
    public R selectMyOrder() {
        return R.ok(incomeService.selectMyOrder());
    }

    @GetMapping("selectOrderInfo/{id}")
    public R selectOrderInfo(@PathVariable Long id) {
        return R.ok(incomeService.selectOrderInfo(id));
    }

}
